/**
 * js入口
 */
function main() {
    $("#login_btn").click(login());
    top.removeExit();
}

function login() {
	var account = $("#account_input").val();
	var password = $("#password_input").val();
	var param = {account: account, password: password};

	$.post(serv.login, param, function(result) {
		if (result.success) {
			location.href = html.main;
		} else {
			$("#err_msg").html(result.message);
		}
	});
}
